import { requestClient } from '#/api/request';
// 订单列表查询
export async function getOrderList(data: any) {
  return requestClient.post('/admin/user/order/pageList', data);
}
// 接单
export async function acceptOrder(data: any) {
  return requestClient.post('/admin/user/order/accept', data);
}
// 头部统计数据查询
export async function getCountResp() {
  return requestClient.post('/admin/user/order/getCountResp');
}
// 订单详情查询
export async function getOrderDetail(data: any) {
  return requestClient.post('/admin/user/order/getDetail', data);
}
// 入住确认
export async function orderCheckIn(data: any) {
  return requestClient.post('/admin/user/order/checkIn', data);
}
// 退款订单同意
export async function orderRefundConfirm(data: any) {
  return requestClient.post('/admin/user/order/refund/confirm', data);
}
// 退款订单拒绝
export async function orderRejectRefund(data: any) {
  return requestClient.post('/admin/user/order/refund/reject', data);
}
// 拒绝接单(取消订单)
export async function orderReject(data: any) {
  return requestClient.post('/admin/user/order/reject/accept', data);
}
// 拒绝修改订单(提前退房)
export async function rejectEarlyCheckOut(data: any) {
  return requestClient.post('/admin/user/order/reject/earlyCheckOut', data);
}
// 修改订单同意(提前退房)
export async function approveEarlyCheckOut(data: any) {
  return requestClient.post('/admin/user/order/approve/earlyCheckOut', data);
}

// 发票列表
export async function getInvoiceList(data: any) {
  return requestClient.post('/admin/user/invoice/get/pageList', data);
}
// 添加发票
export async function addInvoice(data: any) {
  return requestClient.post('/admin/user/invoice/add', data);
}
// 驳回发票
export async function rejectInvoice(data: any) {
  return requestClient.post('/admin/user/invoice/reject', data);
}

// 获取发票统计数量
export async function getInvoiceCount(data: any) {
  return requestClient.post('/admin/user/invoice/count', data);
}
// 财务概况
export async function getFinanceCount() {
  return requestClient.post('/admin/user/finance/count');
}
// 订单走势图
export async function getFinanceTrend(data: any) {
  return requestClient.post('/admin/user/finance/trend', data);
}
// 财务订单列表
export async function getFinanceOrderList(data: any) {
  return requestClient.post('/admin/user/finance/pageList', data);
}
